package edu.sctu.practice.class01.zhoudie.assgin03;

/**
 * Created by Administrator on 2015-10-22.
 */

public class Circle extends GeometricObject {
    protected double radius;
    public Circle() {

    }
    public Circle(double radius, String color) {
        super(color);
        this.radius = radius;
    }
    public double findArea() {
        return radius*radius*Math.PI;
    }
    public double findPerimeter() {
        return 2*radius*Math.PI;
    }
    public String toString() {
        return "圆的半径为： " + radius;
    }
}
